package com.wxy.demo.override;

import java.io.IOException;

/**
 * <p>
 * 重写
 * </p>
 *
 * @author e-Xiaoyuan.Wang
 * @since 2022/4/21 11:21
 */
public class Animal {
    public void move() {
        System.out.println("动物可以移动");
    }

    public Object say() {
        return "动物可以叫";
    }

    public void error() throws IOException {
        throw new IOException("脑壳短路");
    }
}
